package com.sinping.qh.repository.mongo.user;


import com.sinping.qh.domain.user.TokenInfo;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author zhangjin
 * @create 2018/6/1
 */
public interface TokenRepository extends MongoRepository<TokenInfo,String> {

    TokenInfo findTokenInfoByUserId(String userId);

    TokenInfo findTokenInfoByToken(String token);
}
